home *** CD-ROM | disk | FTP | other *** search
/ Power Programmierung 2 / Power-Programmierung CD 2 (Tewi)(1994).iso / gnu / gnulib / ghostscr / gdevs.mak < prev    next >
Encoding:
Text File  |  1991-02-04  |  8.2 KB  |  253 lines

  1. #    Copyright (C) 1989, 1990, 1991 Aladdin Enterprises.  All rights reserved.
  2. #    Distributed by Free Software Foundation, Inc.
  3. #
  4. # This file is part of Ghostscript.
  5. #
  6. # Ghostscript is distributed in the hope that it will be useful, but
  7. # WITHOUT ANY WARRANTY.  No author or distributor accepts responsibility
  8. # to anyone for the consequences of using it or for whether it serves any
  9. # particular purpose or works at all, unless he says so in writing.  Refer
  10. # to the Ghostscript General Public License for full details.
  11. #
  12. # Everyone is granted permission to copy, modify and redistribute
  13. # Ghostscript, but only under the conditions described in the Ghostscript
  14. # General Public License.  A copy of this license is supposed to have been
  15. # given to you along with Ghostscript so you can know your rights and
  16. # responsibilities.  It should be in a file named COPYING.  Among other
  17. # things, the copyright notice and this notice must be preserved on all
  18. # copies.
  19.  
  20. # makefile for Ghostscript device drivers.
  21.  
  22. # -------------------------------- Catalog ------------------------------- #
  23.  
  24. # It is possible to build Ghostscript with an arbitrary collection of
  25. # device drivers, although many drivers are supported only on a subset
  26. # of the target platforms.  The currently available drivers are:
  27.  
  28. # Displays:
  29. #    bgi    Borland Graphics Interface   [MS-DOS only]
  30. #    ega    EGA display   [MS-DOS only]
  31. #    ega_bios  EGA display using BIOS calls (very slow)   [MS-DOS only]
  32. #    mdb10    EIZO MDB-10 display (1024 x 768)   [MS-DOS only]
  33. #    sonyfb    Sony Microsystems monochrome display   [Sony only]
  34. #    sunview  SunView window system   [SunOS only]
  35. #    vga    VGA display   [MS-DOS only]
  36. #    x11    X Windows version 11, release >=3   [Unix only]
  37. # (NOTE: no more than one MS-DOS display driver may be included in
  38. #   any build.)
  39. # Printers:
  40. #    bj10e    Canon BubbleJet BJ10e  [MS-DOS only]
  41. #    deskjet  H-P DeskJet   [MS-DOS & Unix]
  42. #    epson    Epson dot matrix printers   [MS-DOS only]
  43. #    laserjet  H-P LaserJet   [MS-DOS & Unix]
  44. #    nwp533  Sony Microsystems NWP533 laser printer   [Sony only]
  45. # ###    paintjet  H-P PaintJet color printer [Unix, tested on SunOS only]
  46. # ###      (NOT INCLUDED IN THIS RELEASE)
  47.  
  48. # If you add drivers, it would be nice if you kept each list
  49. # in alphabetical order.
  50.  
  51. # Each platform-specific makefile should contain a pair of lines of the form
  52. #    DEVICES=<dev1> ... <devn>
  53. #    DEVICE_OBJS=$(<dev1>_) ... $(<devn>_)
  54. # where dev1 ... devn are the devices to be included in the build.
  55. # dev1 will be used as the default device.  Don't forget the _s!
  56. # On MS-DOS platforms, the first of these lines must appear *before*,
  57. # and the second *after*, the lines
  58. #    (!)include gdevs.mak
  59. #    (!)include ghost.mak
  60. # in the makefile.  On Unix systems, the two device definition lines
  61. # may appear anywhere in the makefile.
  62. #
  63. # The executable must be linked with all the files named in DEVICE_OBJS.
  64. # On MS-DOS platforms, this is done by constructing a file called gdevs.tl,
  65. # to get around the limit on the length of a DOS command line.
  66.  
  67. # ---------------------------- End of catalog ---------------------------- #
  68.  
  69. # If you want to add a new device driver, the examples below should be
  70. # enough of a guide to the correct form for the makefile rules.
  71.  
  72. # All device drivers depend on the following
  73. # (note that we include some indirect dependencies explicitly):
  74.  
  75. GDEV=$(AK) gs.h gx.h gsmatrix.h gxbitmap.h gxdevice.h
  76.  
  77. ###### ------------------- MS-DOS display devices ------------------- ######
  78.  
  79. GDEVPCFB=gdevpcfb.h $(GDEV)
  80.  
  81. gdevegaa.$(OBJ): gdevegaa.asm
  82.  
  83. ### -------------------------- The EGA device -------------------------- ###
  84.  
  85. ETEST=ega.$(OBJ) trace.$(OBJ) $(ega_)
  86. ega.exe: $(ETEST) libc$(MM).tl
  87.     tlink /m /l $(LIBDIR)\c0$(MM) @ega.tl @libc$(MM).tl
  88.  
  89. ega.$(OBJ): ega.c $(GDEV)
  90.  
  91. ega_=gdevega.$(OBJ) gdevegaa.$(OBJ)
  92. ega.dev: $(ega_)
  93.     .$(DS)gssetdev ega.dev $(ega_)
  94.  
  95. gdevega.$(OBJ): gdevpcfb.c gdevega.h $(GDEVPCFB)
  96.     cp gdevega.h gdevxxfb.h
  97.     $(CCNA) gdevpcfb.c
  98.     rm gdevxxfb.h
  99.     cp gdevpcfb.obj gdevega.obj
  100.  
  101. ega_bios_=gdevegab.$(OBJ) gdevegaa.$(OBJ)
  102. ega_bios.dev: $(ega_bios_)
  103.     .$(DS)gssetdev ega_bios.dev $(ega_bios_)
  104.  
  105. gdevegab.$(OBJ): gdevegab.c $(GDEVPCFB)
  106.     $(CCNA) $(D_EGA) gdevegab.c
  107.  
  108. ### -------------------------- The VGA device -------------------------- ###
  109.  
  110. vga_=gdevvga.$(OBJ) gdevegaa.$(OBJ)
  111. vga.dev: $(vga_)
  112.     .$(DS)gssetdev vga.dev $(vga_)
  113.  
  114. gdevvga.$(OBJ): gdevpcfb.c gdevvga.h $(GDEVPCFB)
  115.     cp gdevvga.h gdevxxfb.h
  116.     $(CCNA) gdevpcfb.c
  117.     rm gdevxxfb.h
  118.     cp gdevpcfb.obj gdevvga.obj
  119.  
  120. ### ---------------------- The EIZO MDB-10 device ---------------------- ###
  121.  
  122. mdb10_=gdevmd10.$(OBJ) gdevegaa.$(OBJ)
  123. mdb10.dev: $(mdb10_)
  124.     .$(DS)gssetdev mdb10.dev $(mdb10_)
  125.  
  126. gdevmd10.$(OBJ): gdevpcfb.c gdevmd10.h $(GDEVPCFB)
  127.     cp gdevmd10.h gdevxxfb.h
  128.     $(CCNA) gdevpcfb.c
  129.     rm gdevxxfb.h
  130.     cp gdevpcfb.obj gdevmd10.obj
  131.  
  132. ###### --------- The BGI (Borland Graphics Interface) device -------- ######
  133.  
  134. bgi_=gdevbgi.$(OBJ) egavga.$(OBJ)
  135. bgi.dev: $(bgi_)
  136.     .$(DS)gssetdev bgi.dev $(bgi_)
  137.  
  138. gdevbgi.$(OBJ): gdevbgi.c $(GDEV)
  139.     $(CCNA) gdevbgi.c
  140.  
  141. egavga.$(OBJ): $(COMPDIR)\egavga.bgi
  142.     bgiobj egavga
  143.  
  144. ###### --------------- Memory-buffered printer devices --------------- ######
  145.  
  146. gvirtmem.$(OBJ): gvirtmem.c gvirtmem.h
  147.  
  148. # Virtual memory test program -- requires VMDEBUG
  149.  
  150. gvm.exe: gvirtmem.$(OBJ) trace.$(OBJ)
  151.     tlink /m /l $(LIBDIR)\c0$(MM) gvirtmem trace,gvm,gvm,$(LIBDIR)\c$(MM)
  152.  
  153. PDEVH=$(GDEV) gxdevmem.h gvirtmem.h gdevprn.h
  154.  
  155. # We use CCNA only because the MS-DOS version of the driver
  156. # refers to stdprn, which is non-ANSI.
  157. gdevprn.$(OBJ): gdevprn.c $(PDEVH)
  158.     $(CCNA) gdevprn.c
  159.  
  160. ### ----------------- The Canon BubbleJet BJ10e device ----------------- ###
  161.  
  162. bj10e_=gdevbj10.$(OBJ) gvirtmem.$(OBJ) gdevprn.$(OBJ)
  163. bj10e.dev: $(bj10e_)
  164.     .$(DS)gssetdev bj10e.dev $(bj10e_)
  165.  
  166. gdevbj10.$(OBJ): gdevbj10.c $(PDEVH)
  167.  
  168. ### ------------------ The H-P DeskJet printer device ------------------ ###
  169.  
  170. # Note that this shares code with the LaserJet device (below).
  171.  
  172. deskjet_=gdevdjet.$(OBJ) gvirtmem.$(OBJ) gdevprn.$(OBJ)
  173. deskjet.dev: $(deskjet_)
  174.     .$(DS)gssetdev deskjet.dev $(deskjet_)
  175.  
  176. gdevdjet.$(OBJ): gdevdjet.c $(PDEVH)
  177.     $(CCA) -DLASER=0 gdevdjet.c
  178.  
  179. ### ----------------- The generic Epson printer device ----------------- ###
  180.  
  181. epson_=gdevepsn.$(OBJ) gvirtmem.$(OBJ) gdevprn.$(OBJ)
  182. epson.dev: $(epson_)
  183.     .$(DS)gssetdev epson.dev $(epson_)
  184.  
  185. gdevepsn.$(OBJ): gdevepsn.c $(PDEVH)
  186.  
  187. ### ------------------ The H-P LaserJet printer device ----------------- ###
  188.  
  189. # Note that this shares code with the DeskJet device (above).
  190.  
  191. laserjet_=gdevljet.$(OBJ) gvirtmem.$(OBJ) gdevprn.$(OBJ)
  192. laserjet.dev: $(laserjet_)
  193.     .$(DS)gssetdev laserjet.dev $(laserjet_)
  194.  
  195. gdevljet.$(OBJ): gdevdjet.c $(PDEVH)
  196.     cp gdevdjet.c gdevljet.c
  197.     $(CCA) -DLASER=1 gdevljet.c
  198.     rm gdevljet.c
  199.  
  200. ### ------------ The H-P PaintJet color printer device ----------------- ###
  201. ### Note: this driver was contributed by users:                          ###
  202. ###       please contact marc@vlsi.polymtl.ca if you have questions.     ###
  203.  
  204. ### This driver was not ready to be included in release 2.0.
  205. ### Do not attempt to use it: the files are not included in the fileset.
  206.  
  207. PJETH=$(GDEV) gdevprn.h gdevpjet.h
  208.  
  209. paintjet_=gdevpjet.$(OBJ)
  210. paintjet.dev: $(paintjet_)
  211.     .$(DS)gssetdev paintjet.dev $(paintjet_)
  212.  
  213. gdevpjet.$(OBJ): gdevpjet.c $(PJETH)
  214.  
  215. ###### ------------------ Sony frame buffer device ----------------- ######
  216.  
  217. sonyfb_=gdevsnfb.$(OBJ) gvirtmem.$(OBJ) gdevprn.$(OBJ)
  218. sonyfb.dev: $(sonyfb_)
  219.     .$(DS)gssetdev sonyfb.dev $(sonyfb_)
  220.  
  221. gdevsnfb.$(OBJ): gdevsnfb.c $(PDEVH)
  222.     $(CCA) gdevsnfb.c
  223.  
  224. ###### ----------------- Sony NWP533 printer device ----------------- ######
  225.  
  226. nwp533_=gdevn533.$(OBJ) gvirtmem.$(OBJ) gdevprn.$(OBJ)
  227. nwp533.dev: $(nwp533_)
  228.     .$(DS)gssetdev nwp533.dev $(nwp533_)
  229.  
  230. gdevn533.$(OBJ): gdevn533.c $(PDEVH)
  231.     $(CCA) gdevn533.c
  232.  
  233. ###### --------------------- The SunView device --------------------- ######
  234.  
  235. sunview_=gdevsun.$(OBJ)
  236. sunview.dev: $(sunview_)
  237.     .$(DS)gssetdev sunview.dev $(sunview_)
  238.  
  239. gdevsun.$(OBJ): gdevsun.c $(GDEV)
  240.  
  241. ###### ----------------------- The X11 device ----------------------- ######
  242.  
  243. x11_=gdevx.$(OBJ)
  244. x11.dev: $(x11_)
  245.     .$(DS)gssetdev x11.dev $(x11_)
  246.  
  247. ### Note: if the X11 client header libraries are not on /usr/include/X11,
  248. ### you may have to change the compilation line below to add a -I switch.
  249. ### For example, if the header files are in /usr/local/X/include/X11,
  250. ### you must add the switch -I/usr/local/X/include.
  251. gdevx.$(OBJ): gdevx.c $(GDEV) gdevx.h
  252.     $(CCA) -I/usr/local/X/include gdevx.c
  253.